aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineEffectTests]/[method:canGenerateCodeForDefineEffect(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
diff options
context:
space:
mode:
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineEffectTests]/[method:canGenerateCodeForDefineEffect(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineEffectTests]/[method:canGenerateCodeForDefineEffect(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected12
1 files changed, 10 insertions, 2 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineEffectTests]/[method:canGenerateCodeForDefineEffect(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineEffectTests]/[method:canGenerateCodeForDefineEffect(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
index 4591b5f8..844a8520 100644
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineEffectTests]/[method:canGenerateCodeForDefineEffect(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineEffectTests]/[method:canGenerateCodeForDefineEffect(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -3,6 +3,12 @@ Compilation unit elements:
(exception-type "shed__effect__exception__Example_Project__State" int)
(
function-decl
+ "shed__runtime__gc_get_root_stack_index"
+ params=()
+ return-type=int
+)
+(
+ function-decl
"shed__runtime__effects_find_handler_method"
params=((param "effectTag" int) (param "methodIndex" int))
return-type=int
@@ -11,9 +17,10 @@ Compilation unit elements:
function
"shed__function__read__0"
visibility=private
- locals=((param "closurePointer__0" data-ptr) (param "local__fence" int) (val "effectHandlerMethod__0" int) (val "tmp__0" int) (val "closurePointer__1" data-ptr) (val "callFunctionPointer__0" function-ptr))
+ locals=((param "closurePointer__0" data-ptr) (param "local__fence" int) (val "gcRootStackIndex__0" int) (val "effectHandlerMethod__0" int) (val "tmp__0" int) (val "closurePointer__1" data-ptr) (val "callFunctionPointer__0" function-ptr))
return-type=int
body=(
+ (call (local "gcRootStackIndex__0") "shed__runtime__gc_get_root_stack_index" ())
(call (local "effectHandlerMethod__0") "shed__runtime__effects_find_handler_method" ((int 0) (int 0)))
(int-to-data-ptr (local "closurePointer__1") (local "effectHandlerMethod__0"))
(
@@ -31,9 +38,10 @@ Compilation unit elements:
function
"shed__function__write__0"
visibility=private
- locals=((param "closurePointer__0" data-ptr) (param "local__arg0" int) (val "effectHandlerMethod__0" int) (val "tmp__0" int) (val "closurePointer__1" data-ptr) (val "callFunctionPointer__0" function-ptr))
+ locals=((param "closurePointer__0" data-ptr) (param "local__arg0" int) (val "gcRootStackIndex__0" int) (val "effectHandlerMethod__0" int) (val "tmp__0" int) (val "closurePointer__1" data-ptr) (val "callFunctionPointer__0" function-ptr))
return-type=int
body=(
+ (call (local "gcRootStackIndex__0") "shed__runtime__gc_get_root_stack_index" ())
(call (local "effectHandlerMethod__0") "shed__runtime__effects_find_handler_method" ((int 0) (int 1)))
(int-to-data-ptr (local "closurePointer__1") (local "effectHandlerMethod__0"))
(